package com.etc.service.impl;

import com.etc.dao.PaymentDao;
import com.etc.entity.Payment;
import com.etc.service.PaymentService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class PaymentServiceImpl implements PaymentService {
    @Resource
    private PaymentDao paymentDao;

    @Override
    public int update(Payment payment) {
        return paymentDao.update(payment);
    }

    @Override
    public int changeStauts() {
        return paymentDao.changeStauts();
    }
}
